<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class AfterService extends Model
{
    public $fillable = [
        'user_id',
        'device_id',
    	//设备故障
    	'equipment_failure',
    	//故障描述
    	'failure_description',
    	//上门服务
    	'door_to_door_service',
    	'name',
    	'phone',
    	'installation_address',
    	'status',
    ];

    public function device()
    {
        return $this->belongsTo('App\Models\Device', 'device_id');
    }
}
